﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write("登入成功!!!");
            string Username = (string)Session["TextBox1"];
            string Passward = (string)Session["TextBox2"];
            Literal1.Text = $"欢迎你"+Session["TextBox1"] +"你的密码是"+Session["TextBox2"];
            

            string Username1 = Request.Form["TextBox1"];
            string Passward1 = Request.Form["TextBox2"];

            string Username2 = Request.QueryString["TextBox1"];
            string Passward2 = Request.QueryString["TextBox2"];


            Response.Write("Request.Form==>>" + Username1+"<br/>");
            Response.Write("Request.Form==>>" + Passward1+"<br/>");
       
            Response.Write("Request.QueryString==>>" + Username2 + "<br/>");
            Response.Write("Request.QueryString==>>" + Passward2 + "<br/>");
        }
    }
}